home *** CD-ROM | disk | FTP | other *** search
/ Champak 145 / (Vol 145) Dec 21 2011.iso / Games / locochew.swf / scripts / __Packages / GUIclass / GameMenu.as
Encoding:
Text File  |  2011-12-21  |  19.7 KB  |  554 lines

  1. function ┬º\x04\x05┬º()
  2. {
  3.    set("\x03",344 % 511 * true);
  4.    ┬º┬ºpush("\x03");
  5.    if("\x01")
  6.    {
  7.    }
  8.    return eval(┬º┬ºpop());
  9. }
  10. var ┬º\x01┬º = 115 + "\x04\x05"();
  11. while(true)
  12. {
  13.    if(eval("\x01") == 459)
  14.    {
  15.       set("\x01",eval("\x01") + 237);
  16.       ┬º┬ºpush(true);
  17.    }
  18.    else if(eval("\x01") == 297)
  19.    {
  20.       set("\x01",eval("\x01") - 86);
  21.    }
  22.    else
  23.    {
  24.       if(eval("\x01") == 512)
  25.       {
  26.          set("\x01",eval("\x01") - 203);
  27.          ┬º┬ºpop()[┬º┬ºpop()] = function ┬º\x04\x05┬º()
  28.          {
  29.             set("\x03",344 % 511 * true);
  30.             ┬º┬ºpush("\x03");
  31.             if("\x01")
  32.             {
  33.             }
  34.             return eval(┬º┬ºpop());
  35.          };
  36.          _loc1_[┬º┬ºconstant(28)] = 0;
  37.          ┬º┬ºpop()[┬º┬ºpop()] = ┬º┬ºpop();
  38.          _loc2_[┬º┬ºconstant(29)] = function()
  39.          {
  40.             this[┬º┬ºconstant(30)] = null;
  41.             this[┬º┬ºconstant(31)](┬º┬ºconstant(29));
  42.          };
  43.          _loc2_[┬º┬ºconstant(32)] = function()
  44.          {
  45.             this[┬º┬ºconstant(31)](┬º┬ºconstant(32));
  46.             this[┬º┬ºconstant(30)] = null;
  47.          };
  48.          _loc2_[┬º┬ºconstant(33)] = function()
  49.          {
  50.             this[┬º┬ºconstant(10)] = -2.5;
  51.          };
  52.          _loc2_[┬º┬ºconstant(34)] = function()
  53.          {
  54.             this[┬º┬ºconstant(10)] = 2.5;
  55.          };
  56.          _loc2_[┬º┬ºconstant(35)] = function()
  57.          {
  58.             this[┬º┬ºconstant(10)] = 0;
  59.             this[┬º┬ºconstant(20)] = ┬º┬ºconstant(21);
  60.          };
  61.          _loc2_[┬º┬ºconstant(36)] = function()
  62.          {
  63.             this[┬º┬ºconstant(20)] = ┬º┬ºconstant(37);
  64.          };
  65.          _loc2_[┬º┬ºconstant(38)] = function()
  66.          {
  67.             this[┬º┬ºconstant(20)] = ┬º┬ºconstant(39);
  68.          };
  69.          _loc2_[┬º┬ºconstant(19)] = function(legsState)
  70.          {
  71.             if(legsState != this[┬º┬ºconstant(16)])
  72.             {
  73.                this[┬º┬ºconstant(16)] = legsState;
  74.                this[┬º┬ºconstant(13)][┬º┬ºconstant(40)][┬º┬ºconstant(15)](legsState);
  75.                if(legsState == ┬º┬ºconstant(41) || legsState == ┬º┬ºconstant(42))
  76.                {
  77.                   _root[┬º┬ºconstant(43)][┬º┬ºconstant(44)][┬º┬ºconstant(45)]();
  78.                }
  79.             }
  80.          };
  81.          _loc2_[┬º┬ºconstant(30)] = function()
  82.          {
  83.             this[┬º┬ºconstant(46)]();
  84.          };
  85.          _loc2_[┬º┬ºconstant(46)] = function()
  86.          {
  87.             this[┬º┬ºconstant(11)] += this[┬º┬ºconstant(10)];
  88.             this[┬º┬ºconstant(11)] *= this[┬º┬ºconstant(47)];
  89.             this[┬º┬ºconstant(48)] += this[┬º┬ºconstant(11)];
  90.             if(this[┬º┬ºconstant(48)] > this[┬º┬ºconstant(49)])
  91.             {
  92.                this[┬º┬ºconstant(48)] = this[┬º┬ºconstant(49)] - 1;
  93.                this[┬º┬ºconstant(11)] = this[┬º┬ºconstant(11)] * this[┬º┬ºconstant(50)] * -1;
  94.             }
  95.             if(this[┬º┬ºconstant(48)] < this[┬º┬ºconstant(51)])
  96.             {
  97.                this[┬º┬ºconstant(48)] = this[┬º┬ºconstant(51)] + 1;
  98.                this[┬º┬ºconstant(11)] = this[┬º┬ºconstant(11)] * this[┬º┬ºconstant(50)] * -1;
  99.             }
  100.             if(this[┬º┬ºconstant(10)] > 0)
  101.             {
  102.                this[┬º┬ºconstant(19)](┬º┬ºconstant(52));
  103.             }
  104.             else if(this[┬º┬ºconstant(10)] < 0)
  105.             {
  106.                this[┬º┬ºconstant(19)](┬º┬ºconstant(53));
  107.             }
  108.             else if(this[┬º┬ºconstant(11)] < 3 && this[┬º┬ºconstant(11)] > -3)
  109.             {
  110.                this[┬º┬ºconstant(19)](┬º┬ºconstant(18));
  111.                this[┬º┬ºconstant(11)] = 0;
  112.             }
  113.             switch(this[┬º┬ºconstant(20)])
  114.             {
  115.                case ┬º┬ºconstant(37):
  116.                   this[┬º┬ºconstant(13)][┬º┬ºconstant(14)][┬º┬ºconstant(54)]();
  117.                   if(this[┬º┬ºconstant(13)][┬º┬ºconstant(14)][┬º┬ºconstant(55)] == this[┬º┬ºconstant(13)][┬º┬ºconstant(14)][┬º┬ºconstant(56)])
  118.                   {
  119.                      this[┬º┬ºconstant(22)] = ┬º┬ºconstant(23);
  120.                   }
  121.                   else
  122.                   {
  123.                      this[┬º┬ºconstant(22)] = ┬º┬ºconstant(57);
  124.                   }
  125.                   break;
  126.                case ┬º┬ºconstant(39):
  127.                   this[┬º┬ºconstant(13)][┬º┬ºconstant(14)][┬º┬ºconstant(58)]();
  128.                   if(this[┬º┬ºconstant(13)][┬º┬ºconstant(14)][┬º┬ºconstant(55)] == this[┬º┬ºconstant(13)][┬º┬ºconstant(14)][┬º┬ºconstant(56)])
  129.                   {
  130.                      this[┬º┬ºconstant(22)] = ┬º┬ºconstant(23);
  131.                   }
  132.                   else
  133.                   {
  134.                      this[┬º┬ºconstant(22)] = ┬º┬ºconstant(59);
  135.                   }
  136.                   break;
  137.                case ┬º┬ºconstant(21):
  138.                   if(this[┬º┬ºconstant(13)][┬º┬ºconstant(14)][┬º┬ºconstant(55)] == this[┬º┬ºconstant(60)])
  139.                   {
  140.                      this[┬º┬ºconstant(22)] = ┬º┬ºconstant(23);
  141.                   }
  142.                   else
  143.                   {
  144.                      if(this[┬º┬ºconstant(13)][┬º┬ºconstant(14)][┬º┬ºconstant(55)] > this[┬º┬ºconstant(60)])
  145.                      {
  146.                         this[┬º┬ºconstant(13)][┬º┬ºconstant(14)][┬º┬ºconstant(58)]();
  147.                         this[┬º┬ºconstant(22)] = ┬º┬ºconstant(59);
  148.                      }
  149.                      if(this[┬º┬ºconstant(13)][┬º┬ºconstant(14)][┬º┬ºconstant(55)] < this[┬º┬ºconstant(60)])
  150.                      {
  151.                         this[┬º┬ºconstant(13)][┬º┬ºconstant(14)][┬º┬ºconstant(54)]();
  152.                         this[┬º┬ºconstant(22)] = ┬º┬ºconstant(57);
  153.                      }
  154.                   }
  155.             }
  156.             this[┬º┬ºconstant(24)] = this[┬º┬ºconstant(13)][┬º┬ºconstant(14)][┬º┬ºconstant(25)][┬º┬ºconstant(26)];
  157.             this[┬º┬ºconstant(28)] = this[┬º┬ºconstant(24)] - this[┬º┬ºconstant(27)];
  158.             this[┬º┬ºconstant(27)] = this[┬º┬ºconstant(24)];
  159.          };
  160.          _loc2_[┬º┬ºconstant(47)] = 0.8;
  161.          _loc2_[┬º┬ºconstant(50)] = 0.9;
  162.          _loc2_[┬º┬ºconstant(51)] = 60;
  163.          _loc2_[┬º┬ºconstant(49)] = eval(┬º┬ºconstant(61))[┬º┬ºconstant(62)] - 60;
  164.          _loc2_[┬º┬ºconstant(60)] = 11;
  165.          ┬º┬ºconstant(63)(fn["m{invalid_utf8=192}\f"][┬º┬ºconstant(5)],null,1);
  166.          break;
  167.       }
  168.       if(eval("\x01") == 611)
  169.       {
  170.          set("\x01",eval("\x01") - 99);
  171.          if(function ┬º\x04\x05┬º()
  172.          {
  173.             set("\x03",344 % 511 * true);
  174.             ┬º┬ºpush("\x03");
  175.             if("\x01")
  176.             {
  177.             }
  178.             return eval(┬º┬ºpop());
  179.          })
  180.          {
  181.             set("\x01",eval("\x01") - 203);
  182.          }
  183.       }
  184.       else if(eval("\x01") == 632)
  185.       {
  186.          set("\x01",eval("\x01") - 21);
  187.          ┬º┬ºpush(true);
  188.       }
  189.       else if(eval("\x01") == 621)
  190.       {
  191.          set("\x01",eval("\x01") + 11);
  192.       }
  193.       else if(eval("\x01") == 127)
  194.       {
  195.          set("\x01",eval("\x01") + 93);
  196.       }
  197.       else if(eval("\x01") == 150)
  198.       {
  199.          set("\x01",eval("\x01") - 22);
  200.          if(function ┬º\x04\x05┬º()
  201.          {
  202.             set("\x03",344 % 511 * true);
  203.             ┬º┬ºpush("\x03");
  204.             if("\x01")
  205.             {
  206.             }
  207.             return eval(┬º┬ºpop());
  208.          })
  209.          {
  210.             set("\x01",eval("\x01") + 533);
  211.          }
  212.       }
  213.       else if(eval("\x01") == 211)
  214.       {
  215.          set("\x01",eval("\x01") + 449);
  216.          ┬º┬ºpush(true);
  217.       }
  218.       else if(eval("\x01") == 519)
  219.       {
  220.          set("\x01",eval("\x01") - 352);
  221.          ┬º┬ºpush("\x0f");
  222.       }
  223.       else if(eval("\x01") == 696)
  224.       {
  225.          set("\x01",eval("\x01") + 154);
  226.          if(function ┬º\x04\x05┬º()
  227.          {
  228.             set("\x03",344 % 511 * true);
  229.             ┬º┬ºpush("\x03");
  230.             if("\x01")
  231.             {
  232.             }
  233.             return eval(┬º┬ºpop());
  234.          })
  235.          {
  236.             set("\x01",eval("\x01") - 788);
  237.          }
  238.       }
  239.       else if(eval("\x01") == 660)
  240.       {
  241.          set("\x01",eval("\x01") - 82);
  242.          if(function ┬º\x04\x05┬º()
  243.          {
  244.             set("\x03",344 % 511 * true);
  245.             ┬º┬ºpush("\x03");
  246.             if("\x01")
  247.             {
  248.             }
  249.             return eval(┬º┬ºpop());
  250.          })
  251.          {
  252.             set("\x01",eval("\x01") - 376);
  253.          }
  254.       }
  255.       else if(eval("\x01") == 102)
  256.       {
  257.          set("\x01",eval("\x01") + 892);
  258.          ┬º┬ºpush("\x0f");
  259.          ┬º┬ºpush(1);
  260.       }
  261.       else if(eval("\x01") == 386)
  262.       {
  263.          set("\x01",eval("\x01") + 468);
  264.          if(function ┬º\x04\x05┬º()
  265.          {
  266.             set("\x03",344 % 511 * true);
  267.             ┬º┬ºpush("\x03");
  268.             if("\x01")
  269.             {
  270.             }
  271.             return eval(┬º┬ºpop());
  272.          })
  273.          {
  274.             set("\x01",eval("\x01") - 604);
  275.          }
  276.       }
  277.       else
  278.       {
  279.          if(eval("\x01") != 128)
  280.          {
  281.             if(eval("\x01") == 578)
  282.             {
  283.                set("\x01",eval("\x01") - 376);
  284.                toggleHighQuality();
  285.                ┬º┬ºpop()[┬º┬ºpop() eq function ┬º\x04\x05┬º()
  286.                {
  287.                   set("\x03",344 % 511 * true);
  288.                   ┬º┬ºpush("\x03");
  289.                   if("\x01")
  290.                   {
  291.                   }
  292.                   return eval(┬º┬ºpop());
  293.                }]();
  294.                addr460:
  295.                ┬º┬ºpop()[┬º┬ºpop()] = ┬º┬ºpop();
  296.                _loc2_.menuStatus = function()
  297.                {
  298.                   return this.__status;
  299.                };
  300.                _loc2_.setButtons = function()
  301.                {
  302.                   this.__targetMc.continueBtn.onRelease = this.continueGame;
  303.                   this.__targetMc.closeBtn.onRelease = this.continueGame;
  304.                   this.__targetMc.restartLevelBtn.onRelease = this.restartLevel;
  305.                   this.__targetMc.instructionBtn.onRelease = this.instructions;
  306.                   this.__targetMc.keyboardBtn.onRelease = this.keyboardShortcuts;
  307.                   this.__targetMc.quitAndSaveBtn.onRelease = this.quitAndSave;
  308.                   this.__targetMc.moreGamesBtn.onRelease = this.moreGames;
  309.                   this.__targetMc.low.onRelease = this.setLowQuality;
  310.                   this.__targetMc.medium.onRelease = this.setMediumQuality;
  311.                   this.__targetMc.high.onRelease = this.setHighQuality;
  312.                   this.__targetMc.volumePanel.volumeBtn.onPress = this.setDrag;
  313.                   this.__targetMc.volumePanel.volumeBtn.onRelease = this.setUnDrag;
  314.                   this.__targetMc.volumePanel.volumeBtn.onReleaseOutside = this.setUnDrag;
  315.                   this.__targetMc.screen.onRelease = function()
  316.                   {
  317.                   };
  318.                   this.__targetMc.screen.enabled = false;
  319.                };
  320.                _loc2_.continueGame = function()
  321.                {
  322.                   this._parent.__refObj.__status = false;
  323.                   if(!this._parent.__refObj.__pause)
  324.                   {
  325.                      _root.__pause = false;
  326.                      _root.unPauseGame();
  327.                   }
  328.                   this._parent.removeMovieClip();
  329.                };
  330.                _loc2_.restartLevel = function()
  331.                {
  332.                   this.__status = false;
  333.                   this._parent.removeMovieClip();
  334.                   _root.restartLevel();
  335.                };
  336.                _loc2_.instructions = function()
  337.                {
  338.                   this._parent.__refObj.__targetMc.attachMovie("instructionsPage","instructionsPage",1);
  339.                   this._parent.__refObj.__targetMc.instructionsPage.screen._visible = false;
  340.                   this._parent.__refObj.__targetMc.instructionsPage.window.onRelease = function()
  341.                   {
  342.                   };
  343.                   this._parent.__refObj.__targetMc.instructionsPage.window.enabled = false;
  344.                };
  345.                _loc2_.keyboardShortcuts = function()
  346.                {
  347.                   trace("keyboard shortcuts");
  348.                };
  349.                _loc2_.quitAndSave = function()
  350.                {
  351.                   this.__status = false;
  352.                   this._parent.removeMovieClip();
  353.                   _root.quitAndSave();
  354.                };
  355.                _loc2_.moreGames = function()
  356.                {
  357.                   this.getURL("http://www.sandhillgames.com","_blank");
  358.                };
  359.                _loc2_.setLowQuality = function()
  360.                {
  361.                   _root._quality = "Low";
  362.                   this._parent.__refObj.__quality = "setLowQuality";
  363.                   _root.gameMenu.low.gotoAndStop(2);
  364.                   _root.gameMenu.medium.gotoAndStop(1);
  365.                   _root.gameMenu.high.gotoAndStop(1);
  366.                };
  367.                _loc2_.setMediumQuality = function()
  368.                {
  369.                   _root._quality = "MEDIUM";
  370.                   this._parent.__refObj.__quality = "setMediumQuality";
  371.                   _root.gameMenu.low.gotoAndStop(1);
  372.                   _root.gameMenu.medium.gotoAndStop(2);
  373.                   _root.gameMenu.high.gotoAndStop(1);
  374.                };
  375.                _loc2_.setHighQuality = function()
  376.                {
  377.                   _root._quality = "HIGH";
  378.                   this._parent.__refObj.__quality = "setHighQuality";
  379.                   _root.gameMenu.low.gotoAndStop(1);
  380.                   _root.gameMenu.medium.gotoAndStop(1);
  381.                   _root.gameMenu.high.gotoAndStop(2);
  382.                };
  383.                _loc2_.setDrag = function()
  384.                {
  385.                   this.startDrag(false,0,0,this._parent._width - this._width / 2,0);
  386.                   this.onEnterFrame = function()
  387.                   {
  388.                      this._parent._parent.__refObj.__volume = this._x / this._parent._width * 100;
  389.                      _root.__gameSounds.setVolume(this._parent._parent.__refObj.__volume);
  390.                   };
  391.                };
  392.                _loc2_.setUnDrag = function()
  393.                {
  394.                   this.stopDrag();
  395.                   this.onEnterFrame = undefined;
  396.                };
  397.                _loc2_.setVolumeBtnPos = function(val)
  398.                {
  399.                   this.__targetMc.volumePanel.volumeBtn._x = this.__targetMc.volumePanel._width * val / 100;
  400.                };
  401.                ┬º┬ºpush(ASSetPropFlags(GUIclass.GameMenu.prototype,null,1));
  402.             }
  403.             else
  404.             {
  405.                if(eval("\x01") == 854)
  406.                {
  407.                   set("\x01",eval("\x01") - 604);
  408.                   ┬º┬ºpush(┬º┬ºpop() | ┬º┬ºpop() >>> (┬º┬ºpop() == function ┬º\x04\x05┬º()
  409.                   {
  410.                      set("\x03",344 % 511 * true);
  411.                      ┬º┬ºpush("\x03");
  412.                      if("\x01")
  413.                      {
  414.                      }
  415.                      return eval(┬º┬ºpop());
  416.                   }));
  417.                   break;
  418.                }
  419.                if(eval("\x01") == 62)
  420.                {
  421.                   set("\x01",eval("\x01") + 570);
  422.                   continue;
  423.                }
  424.                if(eval("\x01") == 179)
  425.                {
  426.                   set("\x01",eval("\x01") - 77);
  427.                   continue;
  428.                }
  429.                if(eval("\x01") == 309)
  430.                {
  431.                   set("\x01",eval("\x01") - 98);
  432.                   continue;
  433.                }
  434.                if(eval("\x01") == 994)
  435.                {
  436.                   set("\x01",eval("\x01") - 475);
  437.                   var ┬º┬ºpop() = function ┬º\x04\x05┬º()
  438.                   {
  439.                      set("\x03",344 % 511 * true);
  440.                      ┬º┬ºpush("\x03");
  441.                      if("\x01")
  442.                      {
  443.                      }
  444.                      return eval(┬º┬ºpop());
  445.                   };
  446.                   continue;
  447.                }
  448.                if(eval("\x01") == 167)
  449.                {
  450.                   set("\x01",eval("\x01") + 112);
  451.                   ┬º┬ºpush(eval(function ┬º\x04\x05┬º()
  452.                   {
  453.                      set("\x03",344 % 511 * true);
  454.                      ┬º┬ºpush("\x03");
  455.                      if("\x01")
  456.                      {
  457.                      }
  458.                      return eval(┬º┬ºpop());
  459.                   }));
  460.                   continue;
  461.                }
  462.                if(eval("\x01") == 850)
  463.                {
  464.                   set("\x01",eval("\x01") - 788);
  465.                   prevFrame();
  466.                   break;
  467.                }
  468.                if(eval("\x01") == 202)
  469.                {
  470.                   set("\x01",eval("\x01") + 18);
  471.                   continue;
  472.                }
  473.                if(eval("\x01") == 220)
  474.                {
  475.                   set("\x01",eval("\x01") + 166);
  476.                   ┬º┬ºpush(true);
  477.                   continue;
  478.                }
  479.                if(eval("\x01") == 250)
  480.                {
  481.                   set("\x01",eval("\x01") - 148);
  482.                   continue;
  483.                }
  484.                if(eval("\x01") == 279)
  485.                {
  486.                   set("\x01",eval("\x01") - 129);
  487.                   ┬º┬ºpush(!function ┬º\x04\x05┬º()
  488.                   {
  489.                      set("\x03",344 % 511 * true);
  490.                      ┬º┬ºpush("\x03");
  491.                      if("\x01")
  492.                      {
  493.                      }
  494.                      return eval(┬º┬ºpop());
  495.                   });
  496.                   continue;
  497.                }
  498.                if(eval("\x01") != 661)
  499.                {
  500.                   if(eval("\x01") == 613)
  501.                   {
  502.                      set("\x01",eval("\x01") - 613);
  503.                   }
  504.                   break;
  505.                }
  506.                set("\x01",eval("\x01") - 48);
  507.                if(!eval("I{invalid_utf8=199}{invalid_utf8=196}{invalid_utf8=134}{invalid_utf8=198}")["-[╩ö"])
  508.                {
  509.                   eval("I{invalid_utf8=199}{invalid_utf8=196}{invalid_utf8=134}{invalid_utf8=198}")["-[╩ö"] = new ┬º{invalid_utf8=163}{invalid_utf8=234}]┬º();
  510.                }
  511.                function ┬º\x04\x05┬º()
  512.                {
  513.                   set("\x03",344 % 511 * true);
  514.                   ┬º┬ºpush("\x03");
  515.                   if("\x01")
  516.                   {
  517.                   }
  518.                   return eval(┬º┬ºpop());
  519.                }
  520.                if(!eval("I{invalid_utf8=199}{invalid_utf8=196}{invalid_utf8=134}{invalid_utf8=198}")["-[╩ö"]["{invalid_utf8=216}\n{invalid_utf8=199}{invalid_utf8=252}{invalid_utf8=211}"])
  521.                {
  522.                   eval("-[╩ö")["{invalid_utf8=216}\n{invalid_utf8=199}{invalid_utf8=252}{invalid_utf8=211}"] extends eval(┬º┬ºconstant(9));
  523.                   var _loc2_ = eval("-[╩ö")["{invalid_utf8=216}\n{invalid_utf8=199}{invalid_utf8=252}{invalid_utf8=211}"] = function()
  524.                   {
  525.                      super();
  526.                      this["{invalid_utf8=236}{invalid_utf8=244}"] = "{invalid_utf8=148}{invalid_utf8=158}";
  527.                      this[┬º┬ºconstant(6)] = 100;
  528.                      this[┬º┬ºconstant(7)] = false;
  529.                      this[┬º┬ºconstant(8)] = new ┬º{invalid_utf8=163}{invalid_utf8=234}]┬º();
  530.                   }[┬º┬ºconstant(10)];
  531.                   _loc2_[┬º┬ºconstant(11)] = function()
  532.                   {
  533.                   };
  534.                   ┬º┬ºgoto(addr460);
  535.                   ┬º┬ºpush(_loc2_);
  536.                   ┬º┬ºpush(┬º┬ºconstant(12));
  537.                }
  538.             }
  539.             function ┬º\x04\x05┬º()
  540.             {
  541.                set("\x03",344 % 511 * true);
  542.                ┬º┬ºpush("\x03");
  543.                if("\x01")
  544.                {
  545.                }
  546.                return eval(┬º┬ºpop());
  547.             }
  548.             break;
  549.          }
  550.          set("\x01",eval("\x01") + 533);
  551.       }
  552.    }
  553. }
  554.